Rotary encoder

ABSTRACT

There is provided a rotary encoder which can eliminate an angle error caused by an eccentricity from a measured angle without strictly adjusting hardware and which can also eliminate a graduation error. Detection of a rotation angle of the rotating section and measurement of an error E (θ n ) included in the detected angle θ are performed in advance, an error function E(θ) represented by a periodic function of the detected angle θ is calculated on the basis of these values, a storing means for storing the periodic function of the calculated error E(θ) is arranged, and an angle obtained by subtracting a value obtained by substituting the detected angle θa for variables in the error function E(θ) from the detected angle θa is displayed on a display unit.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a rotary encoder which detects a rotation angle of a rotating section with reference to a fixed section.

[0003] 2. Description of the Related Art

[0004] As a rotary encoder of this type, a rotary encoder comprising a graduation disk (rotating section), a light-emitting section for irradiating light on the graduation disk, and a light-receiving section (fixed section) for receiving light emitted from the light-emitting section and transmitted through the graduation disk is known. The rotary encoder detects a rotation angle of the graduation disk on the basis of a signal output depending on the light received by the light-receiving section. In general, in the rotary encoder, when the center of the graduation disk is eccentric from an actual rotating center, or when the graduation disk is not perpendicular to the rotating axis, an angular error is generated. An angular error is also generated due to the size of the graduation interval or graduation errors such as a systematic distortion for the circumference of the graduation disk. With respect to these errors, in Patent Document 1, a technique which arranges a plurality of combinations of code patterns and light-receiving elements on the circumference at almost equal intervals to remove these errors is disclosed.

[0005] [Patent Document 1]

[0006] Japanese Patent Application Laid-Open No. H6-313719

[0007] In the conventional rotary encoder, in order to reduce an angular error etc. caused by an eccentricity, an inclination of the graduation disk etc., the center position of the graduation disk and the inclination must be adjusted, and time cost is very excessive. The adverse affect of this graduation error cannot be easily reduced by adjusting hardware. When the rotary encoder is applied to a surveying instrument etc., the following method must be chosen. That is, an angle is measured a plurality of times, the positions of graduations read in the respective angle measurements are shifted from each other, and the measurement values are averaged (pairs of observations), so that the adverse affect of the graduation error is reduced. A technique in which a plurality of combinations of code patterns and light-receiving elements are arranged on a circumference at almost equal intervals to eliminate these errors is expensive. The number of combinations arranged on the circumference is limited, and adjustment of these combinations disadvantageously requires a long time.

SUMMARY OF THE INVENTION

[0008] The present invention has been made in consideration of the above problems, and has as its object to provide a rotary encoder (including an incremental encoder and an absolute encoder) which can eliminate an angle error caused by an eccentricity from a measured angle without strictly adjusting hardware and which can also eliminate a dividing error by graduation.

[0009] In order to solve the above problems, according to the present invention, there is provided a rotary encoder includes: a fixed section; a rotating section which can be rotated with reference to the fixed section; angle detecting means for detecting a rotation angle of the rotating section with reference to a predetermined reference position of the rotating section; and output means for outputting the detected angle, wherein, when the angle detecting means detects an angle θn=n ×θs (n=1, 2, . . . , N (where N×θs=3600)) which is an integer multiple of a predetermined angle θs (θs>output resolution) such that the rotating section is rotated, an angle error E (θn) included in the detected angle θn is measured, functions between the detected angles θn and errors E(θn) are defined by the following equation with respect to all n, ${E\quad \left( {\theta \quad n} \right)} = {\sum\limits_{i = 1}^{N/2}{{A_{i} \cdot \sin}\quad \left( {{i\quad \theta \quad n} + \varphi_{i}} \right)}}$

[0010] an amplitude A_(i) and an initial phase φ_(i) (i=1, 2, . . . , N/2 or (N−1)/2) are calculated such that all the defined equations are satisfied, storing means for storing an error function which is given by the following equation: ${E\quad (\theta)} = {\sum\limits_{i = 1}^{N/2}{{A_{i} \cdot \sin}\quad \left( {{i\quad \theta} + \varphi_{i}} \right)}}$

[0011] and which is a periodic function of a detected angle θa having the calculated amplitude A_(i) and the calculated initial phase φ_(i) as coefficients is arranged, the detected angle θa detected by the angle detection means is substituted for the variables θ in the equation of the error function E(θ) stored by the storing means, and a value obtained by subtracting the value E(θa) obtained by the substitution from the detected angle θa is outputted by the output means.

[0012] This operation is performed in consideration of the periodicity of the error included in the angle detected by the rotary encoder. According to this, an error function is calculated on the basis of the error included in the detected angle of the rotary encoder which is measured in advance, and the detected angle is corrected on the basis of the calculated error function. For this reason, even though adjustment of hardware for reducing the eccentricity and the inclination of the graduation disk is not strictly performed, an angle error caused by an eccentricity etc. and a graduation error are eliminated by the correction using the error function, and an accurate angle can be obtained.

[0013] Even though a cause of an error is not known, when the tendency of the error period can be known, the adverse affect of the error can be efficiently removed, and accurate angle measurement can be performed. Furthermore, the error functions E(θ) using the amplitudes A_(i) and the initial phases φ_(i) with respect to all the orders i (=1, 2, . . . , N/2 or (N−1)/2) are not stored by the storing means, and an error function E(θ) using at least one amplitude A_(k1), A_(k2), . . . , A_(km) and at least one initial phase φ_(k1), φ_(k2), . . . , φ_(km) (k1, k2, . . . , km is at least one of natural numbers from 1 to N/2 or (N−1)/2) may be stored by the storing means. In this manner, when the order of the error function is appropriately selected, only the component of a cycle having a large error amplitude can be selected, and measurement and correction of an angle error can be efficiently performed in accordance with an accuracy of respective targets.

BRIEF DESCRIPTION OF THE DRAWINGS

[0014]FIG. 1 is a perspective view showing a conventional incremental encoder;

[0015]FIG. 2 is a plan view showing an inspection system by a polygon mirror and an autocollimator; and

[0016]FIG. 3 is a plan view showing an angle error inspection system.

DESCRIPTION OF REFERENCE NUMERALS

[0017]2: Main graduation

[0018]3: Light-emitting section

[0019]4: Subgraduation

[0020]5: Light-receiving section

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] Referring to FIG. 1, reference numeral 1 denotes an incremental rotary encoder. The rotary encoder 1 comprises a main graduation (rotating section) 2 fixed to a rotating shaft A, a light-emitting section 3, fixed on a bearing (not shown) of the rotating shaft, for irradiating light on the main graduation 2, a subgraduation 4 fixed to a position where the light emitted from the light-emitting section 3 is transmitted through the main graduation 2, and a light-receiving section (fixed section) 5 for receiving the light emitted from the light-emitting section 3 and transmitted through the main graduation 2 and the subgraduation 4.

[0022] The rotary encoder 1 comprises a CPU 6. The CPU 6 is connected to the light-receiving section 5 through a counter 11, a waveform shaper 12, and an A/D converter 7. A display unit (display means) 8 for displaying a calculation result of the CPU 6, an angle of the rotary encoder 1 etc., and a ROM (storing means) 9 for storing a control program of the CPU 6, various data, and the like are connected to the CPU 6.

[0023] In the main graduation 2, graduation slits having equal widths and equal intervals are formed throughout the circumference. In the subgraduation 4, graduation slits having widths and intervals which are equal to those of the main graduation 2 are formed at least one part. The light-emitting section 3 comprises a light-emitting diode 31 and a collimation lens 32. Light from the light-emitting diode 31 is converted into parallel beams by the collimation lens 32, and the parallel beams are irradiated on the main graduation 2. The light-receiving section 5 comprises a photoelectric conversion element (not shown). The light-receiving section 5 outputs electric signals depending on light-and-shade patterns formed when the light from the light-emitting section 3 is transmitted through the graduation slits of the main graduation 2 and the subgraduation 4. In this embodiment, when the light-receiving section 5, the subgraduation 4, and the light-emitting section 3 are fixed to the main body, and the main graduation 2 is rotated. However, in contrast to this, the main graduation 2 may be fixed, and the light-receiving section 5, the subgraduation 4, and the light-emitting section 3 may be rotated.

[0024] In the main graduation 2 and the subgraduation 4, one or more origin position graduation O is formed at each of the positions which correspond to each other and which are near the slits. A position where the two origin position graduations O of the main graduation 2 and the subgraduation 4 face each other is defined as an origin position of the main graduation 2. When the light from the light-emitting section 3 are transmitted through the two origin position graduations O of the main graduation 2 and the subgraduation 4 and then received by the light-receiving section 5, the light-receiving section 5 outputs an origin position signal to the CPU 6. The rotation angle of the main graduation 2 is detected on the basis of the origin position.

[0025] The detected angle of the rotary encoder according to the embodiment includes an error. Therefore, when error correction is performed, an accurate encoder can be obtained. As causes of errors, an eccentricity, an inclination of a graduation disk, and the like are conceivable. These errors can be reduced by mechanical adjustment. However, an graduation error cannot be reduced by mechanical adjustment, and an accurate graduation disk must be formed.

[0026] In the ROM 9, not only the control program of the CPU 6, but also a general form: ${E\quad (\theta)} = {\sum\limits_{i = 1}^{N/2}{{A_{i} \cdot \sin}\quad \left( {{i\quad \theta} + \varphi_{i}} \right)}}$

[0027] (A_(i) is an amplitude, and φ_(i) is an initial phase) representing a correlation between the detected angle θa detected by the CPU 6 on the basis of an electric signal from the light-receiving section 5 and the origin position signal and the error E(θa) included in the detected angle ea are stored. The error function E(θ) is a periodic function of the detected angle θ, and the amplitude A_(i) and the initial phase φ_(i) are calculated by the procedure described below. The error function E(θ) may include a constant term A_(o) of Fourier series. Correction of an angle error caused when the rotary encoder 1 is incorporated to measure a horizontal angle of a total station T will be described below.

[0028] As shown in FIG. 2, a vertical axis T_(a) of the total station T and a rotation center axis P_(a) of a polygon mirror P are connected such that the vertical axis T_(a) is almost matched with the rotation center axis P_(a), and an autocollimator AC is arranged to measure a reflective surface P_(n) (n=1, 2, . . . , 8) of the polygon mirror P. For the descriptive convenience, when the total station T outputs an origin θ_(o) of the rotary encoder E incorporated in the vertical axis, it is assumed that the rotation angles of the total station T and the polygon mirror P are matched with each other such that a first surface P₁ of the reflective surface P of the polygon mirror correctly faces the autocollimator AC.

[0029] The vertical axis of the total station T is rotated such that the reflective surfaces P₁ to P₈ of the polygon mirror P correctly faces the autocollimator AC. Measured angles θ_(n) of the total station T (rotary encoder 1) and output values δ_(n) of the autocollimator are measured, respectively.

[0030] At this time, an angle error E(θ_(n)) included in the rotary encoder E can be expressed by: ${E\left( \theta_{n} \right)} = {\theta_{n} - {\frac{360{^\circ}}{N}\left( {n - 1} \right)} - \delta_{n}}$

[0031] Fourier series expansion is performed by using the angle error E(θn) obtained as described above to obtain an error function below: ${E\quad (\theta)} = {\sum\limits_{i = 1}^{N/2}{{A_{i} \cdot \sin}\quad \left( {{i\quad \theta} + \varphi_{i}} \right)}}$

[0032] In this case, when an angle 360°×(n−1)/N between the first surface P₁ and the reflective surface P_(n) of the polygon mirror P has an error σ_(n), the polygon mirror P is corrected in advance, and the angle between the reflective surface P_(n) and the first surface P₁ of the polygon mirror P is given by 360°×(n−1) /N+σ_(n). In this manner, the angle error E(θ_(n)) of the rotary encoder E can be obtained at a high accuracy.

[0033] Even though the polygon mirror P cannot be corrected in advance, when the rotary encoder E outputs an origin θ_(o), the reflective surfaces P_(n) of the polygon mirror P which correctly face the autocollimator AC are sequentially switched to measure N functions E(θ_(n)). An average of the N measured functions E(θ_(n)) is calculated, so that the adverse affect of the error σ_(n) held by the reflective surfaces P_(n) of the polygon mirror P can be suppressed.

[0034] An angle measuring process in the rotary encoder 1 will be described below.

[0035] When an angle measurement is performed by the total station, an error function written in the ROM 9 in an actual field measurement is calculated after a telescope is rotated up to 360° to check an origin in the increment encoder. When the main graduation 2 of the rotary encoder 1 is rotated, light from the light-emitting section 3 is transmitted through the slits of the main graduation 2 and received by the light-receiving section 5. The light-receiving section 5 outputs an electric signal to the counter or the A/D converter 7 depending on a light-and-shade pattern formed when the light is transmitted through the main graduation 2 and the subgraduation 4. The A/D converter 7 converts the electric signal from an analog signal into a digital signal, and outputs the digital signal to the CPU 6. The CPU 6 detects a detected angle θa of the graduation disk 2 on the basis of the digital signal, and substitutes the detected angle θa for the variables in the error function E(θ) stored in the ROM 9 to calculate an error E(θa) (E(θa) is a positive or negative value) included in the detected angle θa. An angle θa−E(θa) obtained by subtracting the error E(θa) from the detected angle θa is displayed on the display unit 8 as an accurate angle.

[0036] In this embodiment, the incremental rotary encoder has been described. However, the present invention can be applied to not only the incremental rotary encoder but also an absolute rotary encoder. More specifically, since the absolute encoder always detects an absolute angle from a predetermined reference position, this detection is equivalent to detection of an origin position O in the incremental encoder.

[0037] When, by using collimator etc. in FIG. 3 (in this case, collimator C1 to C4 are arranged in four directions), a pair of measurements (for example, with respect to these collimator, three pairs of measurements) are performed, an order i of an error function to be measured can be selected by adjusting the number of collimator to be installed. An encoder which adapts to an accuracy of respective targets can be manufactured. When an order terms which cause errors are combined to each other, an encoder which adapts to an accuracy of respective targets can be manufactured.

[0038] In order to determine a constant of an angle error by an encoder itself, as another inspection method, the following method is used. That is, a reference encoder having a known angle error is compared with the above encoder to measure an error, and constants of an error function obtained by the error can be determined.

[0039] In the embodiment of the present invention, the encoder is described as an encoder mounted on a surveying instrument. However, when the telescope section of surveying instrument is detachably arranged on the encoder, an encoder having a desired accuracy can be obtained as a single unit.

[0040] As is apparent from the above description, according to the present invention, an error function E(θ) is calculated on the basis of an error included in a detected angle of a rotary encoder which is measured in advance, and the detected angle is corrected on the basis of the calculated error function. For this reason, an angle error caused by an eccentricity etc. and a graduation error are eliminated by correction based on the error function without strictly adjusting hardware to reduce an eccentricity and an inclination of a graduation disk, and an accurate angle can be obtained.

[0041] Even though a cause of an error is not known, when the tendency of an error period can be known, the adverse affect of the error can be efficiently removed, and accurate angle measurement can be performed.

[0042] When an order of an error function is selected, measurement and correction of an angle error which are performed to satisfy an accuracy of respective targets can be efficiently performed. Advantageously, firmware need not have a table including a large angle error. 

What is claimed is:
 1. A rotary encoder comprising: a fixed section; a rotating section which can be rotated with reference to the fixed section; angle detecting means for detecting a rotation angle of the rotating section with reference to a predetermined reference position of the rotating section; and output means for outputting the detected angle, wherein, when the angle detecting means detects an angle θn=n×θs (n=1, 2, . . . , N (where N×θs=360°)) which is an integer multiple of a predetermined angle θs (θs≧output resolution) such that the rotating section is rotated, an angle error E (θn) included in the detected angle θn is measured, functions between the detected angles θn and errors E(θn) are defined by the following equation with respect to all n: ${E\quad \left( {\theta \quad n} \right)} = {\sum\limits_{i = 1}^{N/2}{{A_{i} \cdot \sin}\quad \left( {{i\quad \theta \quad n} + \varphi_{i}} \right)}}$

an amplitude A_(i) and an initial phase φ_(i) (i=1, 2, . . . , N/2 or (N−1)/2) are calculated such that all the defined equations are satisfied, storing means for storing an error function which is given by the following equation: ${E\quad (\theta)} = {\sum\limits_{i = 1}^{N/2}{{A_{i} \cdot \sin}\quad \left( {{i\quad \theta} + \varphi_{i}} \right)}}$

and which is a periodic function of a detected angle θa having the calculated amplitude A_(i) and the calculated initial phase φ_(i) as coefficients is arranged, the detected angle θa detected by the angle detection means is substituted for the variables θ in the equation of the error function E(θ) stored by the storing means, and a value obtained by subtracting the value E(θa) obtained by the substitution from the detected angle θa is outputted by the output means.
 2. A rotary encoder comprising: a fixed section; a rotating section which can be rotated with reference to the fixed section; angle detecting means for detecting a rotation angle of the rotating section with reference to a predetermined reference position of the rotating section; and output means for outputting the detected angle, wherein, when the angle detecting means detects an angle θn=n×θs (n=1, 2, . . . , N (where N×θs=360°)) which is an integer multiple of a predetermined angle θs (θs>output resolution) such that the rotating section is rotated, an angle error E (θn) included in the detected angle θn is measured, combinations between the detected angles θn and errors E(θn) are defined by the following equation with respect to all n: ${E\quad \left( {\theta \quad n} \right)} = {\sum\limits_{i = 1}^{N/2}{{A_{i} \cdot \sin}\quad \left( {{i\quad \theta \quad n} + \varphi_{i}} \right)}}$

an amplitude A_(i) and an initial phase φ_(i) (i=1, 2, . . . , N/2 or (N−1)/2) are calculated such that all the defined equations are satisfied, storing means for storing an error function which is given by the following equation: ${E\quad (\theta)} = {\sum\limits_{i = 1}^{m}{{A_{k\quad i} \cdot \sin}\quad \left( {{k\quad i\quad \theta} + \varphi_{k\quad i}} \right)}}$

and which is a periodic function of the detected angle θa having at least one amplitude A_(k1), A_(k2), . . . , A_(km) and at least one initial phase φ_(k1), φ_(k2), . . . , φ_(km) (k1, k2, . . . , km is at least one of natural numbers from 1 to N/2 or (N−1)/2) of the calculated amplitudes A_(i) and the calculated initial phases φ_(i) as coefficients is arranged, the detected angle θa detected by the angle detection means is substituted for the variables θ in the equation of the error function E(θ) stored by the storing means, and a value obtained by subtracting the value E(θa) obtained by the substitution from the detected angle θa is outputted by the output means. 